package com.example.dayu521.sg_oss.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_trade
 */
@TableName(value ="t_trade")
@Data
public class Trade implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Long user_id;

    /**
     * 
     */
    @TableField(value = "business_id")
    private Long business_id;

    /**
     * 
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 
     */
    @TableField(value = "session_id")
    private String session_id;

    /**
     * 
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 
     */
    @TableField(value = "date")
    private LocalDateTime date;

    @TableField(value = "finish_time")
    private LocalDateTime finish_time;

    @TableField(exist = false)
    private LocalDateTime timeout_date;

    /**
     * 
     */
    @TableField(value = "description")
    private String description;

    /**
     * 
     */
    @TableField(value = "sum_money")
    private BigDecimal sum_money;

    /**
     * 0创建 1支付 2已主动关闭 3已超时关闭 4正在关闭
     */
    @TableField(value = "bs_state")
    private Integer bs_state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}